#include<stdio.h>
#include<string.h>
//读取.txt文件中的数据，转化成.csv格式表格
//逗号“，”为列的分格符，自动填入不同的格子

int main()
{
	FILE *fp=NULL;
	FILE *fp1=NULL;
	char buff[255];

	fp1=fopen("GNGSA.txt","r");
	fp=fopen("test.csv","w+");
	while(!feof(fp1))
	{
		memset(buff,0,255);
		fgets(buff,255,(FILE*)fp1);
		fputs(buff,fp);
	}
	
	
	fclose(fp);
	fclose(fp1);

}

